package spring5;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;

@Aspect
public class LogAroundAdvice {
	@Around("execution(* spring5.IHello.*(..))")
	public Object aroundAdvice(ProceedingJoinPoint joinPoint) throws Throwable {
		System.out.println("AroundAdvice method starts…");
		Object result = joinPoint.proceed();
		System.out.println("AroundAdvice method return…");
		return result;
	}
}
